/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (the
 *  "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */
package org.apache.myfaces.test.webapp.impl.dependencies;

import org.apache.myfaces.test.webapp.api.dependencies.WebappConfiguration;

/**
 * Defines the HtmlUnit dependency jars that must be included into the archive
 * deployed on the server in order to have HtmlUnit working.
 *
 * @author Cosmin Martinconi, 13.07.2010
 */
public enum HtmlUnitDependency implements WebappConfiguration {

    //HtmlUnit compile and run dependencies
    COMMONS_IO_1_4("commons-io", "commons-io", "1.4"),
    COMMONS_LANG_2_4("commons-lang", "commons-lang", "2.4"),
    COMMONS_CODEC_1_3("commons-codec", "commons-codec", "1.3"),
    COMMONS_HTTPClIENT_3_1("commons-httpclient", "commons-httpclient", "3.1"),

    HTMLUNIT_CORE_2_4("net.sourceforge.htmlunit", "htmlunit-core-js", "2.4"),
    HTMLUNIT_2_4("net.sourceforge.htmlunit", "htmlunit", "2.4"),
    HTMLUNIT_DRIVER_2_6("net.sourceforge.htmlunit", "webdriver", "2.6"),
    CSSPARSER_0_9_5("net.sourceforge.cssparser", "cssparser", "0.9.5"),
    NEKOHTML_1_9_11("net.sourceforge.nekohtml", "nekohtml", "1.9.11"),
    W3C_SAC_1_3("org.w3c.css", "sac", "1.3");


    private String _groupId;
    private String _artifactId;
    private String _version;

    private HtmlUnitDependency(String groupId, String artifactId, String version)
    {
        _groupId = groupId;
        _artifactId = artifactId;
        _version = version;
    }

    public String getGroupId()
    {
        return _groupId;
    }

    public String getArtifactId()
    {
        return _artifactId;
    }

    public String getVersion()
    {
        return _version;
    }

}
